{{ include('components/flash_messages.twig', with_context = false) }}

{% if has_tables %}
  <div id="tableslistcontainer">
    {{ list_navigator_html|raw }}

    {{ table_list_html|raw }}

    {{ list_navigator_html|raw }}
  </div>
  <hr>
  <p class="d-print-none">
    <button type="button" class="btn btn-link p-0 jsPrintButton">{{ get_icon('b_print', t('Print'), true) }}</button>
    <a href="{{ url('/database/data-dictionary', {'db': database, 'goto': url('/database/structure')}) }}">
      {{ get_icon('b_tblanalyse', t('Data dictionary'), true) }}
    </a>
  </p>
{% else %}
  {{ t('No tables found in database.')|notice }}
{% endif %}

{% if not is_system_schema %}
  {{ create_table_html|raw }}
{% endif %}
